package com.ndp.fb.creative.fetchdata.dao.mongodb;

import com.mongodb.DB;
import com.mongodb.DBCollection;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by Hermen on 2015/3/5.
 */
public class MongodbClient {

    @Autowired
    private DB mongoDBClient;

    public String getDbName(){
        return mongoDBClient.getName();
    }

    public DBCollection getCollection(String name){
        return mongoDBClient.getCollection(name);
    }

    public DB getDb(){
        return mongoDBClient;
    }


}
